package de.akad.imp03.client.ui;

import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class ImageContent {
	
	private String imageUrl;
	
	public ImageContent(String url) {
		this.imageUrl = url;
	}
	
	public Panel onInitialize() {
		VerticalPanel panel = new VerticalPanel();
		panel.setHeight("400px");
		panel.setWidth("550px");
		Image i = new Image(imageUrl);
		i.setHeight("400px");
		i.setWidth("550px");
		panel.add(i);
		return panel;
	}

}
